<?php
defined("_VALID_ACCESS") || die('Direct access forbidden');
class SCTV_MaintenanceChangeRequest extends Module { 
	public function body() {
  		$this->rb = $this->init_module('Utils/RecordBrowser','SCTV_MaintenanceChangeRequest','SCTV_MaintenanceChangeRequest');
		$MaintenanceChangeRequest = array(array('status'=>1), array(), array());	
    	$this->display_module($this->rb, $MaintenanceChangeRequest, 'show_data'); 
    }
	
  	public function caption(){
		if (isset($this->rb)) return $this->rb->caption();
	}
	public function maintenance_addon($arg){
		$rb = $this->init_module('Utils/RecordBrowser','SCTV_MaintenanceChangeRequest');
		$rb->set_defaults(array('maintenance'=>$arg['id']));
		$MaintenanceChangeRequest = array(array('maintenance'=>$arg['id']), array(), array());
		$this->display_module($rb,$MaintenanceChangeRequest,'show_data');
	}
}
?>